home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / winterp-1.13 / src-server / xlisp / Imakefile < prev    next >
Encoding:
Makefile  |  1991-10-06  |  5.8 KB  |  177 lines

  1. ################################################################################
  2. #
  3. # File:         Imakefile
  4. # RCS:          $Header: Imakefile,v 1.3 91/03/14 03:37:26 mayer Exp $
  5. # Description:  Imakefile for libXlisp.a
  6. # Author:       Niels Mayer, HPLabs
  7. # Created:      Fri Nov 24 19:47:38 1989
  8. # Modified:     Sat Oct  5 21:58:49 1991 (Niels Mayer) mayer@hplnpm
  9. # Language:     N/A
  10. # Package:      N/A
  11. # Status:       X11r5 contrib tape release
  12. #
  13. # WINTERP Copyright 1989, 1990, 1991 Hewlett-Packard Company (by Niels Mayer).
  14. # XLISP version 2.1, Copyright (c) 1989, by David Betz.
  15. #
  16. # Permission to use, copy, modify, distribute, and sell this software and its
  17. # documentation for any purpose is hereby granted without fee, provided that
  18. # the above copyright notice appear in all copies and that both that
  19. # copyright notice and this permission notice appear in supporting
  20. # documentation, and that the name of Hewlett-Packard and David Betz not be
  21. # used in advertising or publicity pertaining to distribution of the software
  22. # without specific, written prior permission.  Hewlett-Packard and David Betz
  23. # make no representations about the suitability of this software for any
  24. # purpose. It is provided "as is" without express or implied warranty.
  25. #
  26. # HEWLETT-PACKARD AND DAVID BETZ DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  27. # SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
  28. # IN NO EVENT SHALL HEWLETT-PACKARD NOR DAVID BETZ BE LIABLE FOR ANY SPECIAL,
  29. # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  30. # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  31. # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  32. # PERFORMANCE OF THIS SOFTWARE.
  33. #
  34. # See ./winterp/COPYRIGHT for information on contacting the authors.
  35. #
  36. # Please send modifications, improvements and bugfixes to mayer@hplabs.hp.com
  37. # Post XLISP-specific questions/information to the newsgroup comp.lang.lisp.x
  38. #
  39. ################################################################################
  40.  
  41. #
  42. # Note on INCLUDES for Motif 1.0:
  43. # ==============================
  44. # Motif 1.0 does not use the standard X11r4 toolkit, therefore you must
  45. # make sure that you are compiling Motif 1.0 programs with the headers
  46. # associated with Motif 1.0, not the default headers that are used by
  47. # X11r4 imake.
  48. #
  49. # Standard locations for Motif includes are /usr/include/X11 and
  50. # /usr/include/Xm. Note that Motif 1.0 uses a variant of the X11r3 toolkit
  51. # intrinsics headers which are installed in /usr/include/X11. Don't
  52. # confuse these    with the incompatible Xtoolkit intrinsics from X11r4.
  53. #
  54. # IF YOUR INSTALLATION OF MOTIF PLACES THE INCLUDE FILES FOR MOTIF's Xt/Xm
  55. # DIRECTORIES SOMEWHERE OTHER THAN cc's USUAL INCLUDE SEARCH PATH
  56. # (normally -I/usr/include -I.), THEN YOU WILL HAVE TO SET 'INCLUDES' BELOW
  57. # TO THE APPROPRIATE LOCATION.
  58. #
  59. # If you change INCLUDES below, you should also set INCLUDES in 
  60. # ../Imakefile.
  61. #
  62. # INCLUDES = -I/usr/include -I.
  63.  
  64. #
  65. # Note on INCLUDES for Motif 1.1:
  66. # ==============================
  67. # Motif 1.1 uses the X11r4 Xlib, libXt, etc. Therefore imake should
  68. # automatically point the compiler to the correct include file directory.
  69. # Thus, leave imake's default TOP_INCLUDES alone, since that will point
  70. # to the X11r4 headers.
  71. # Motif 1.1 is not included as part of the X11r4 distribution. 
  72. # IF YOUR INSTALLATION OF MOTIF PLACES THE INCLUDE FILES FOR MOTIF's Xm
  73. # DIRECTORIES SOMEWHERE OTHER THAN cc's USUAL INCLUDE SEARCH PATH
  74. # (e.g. /usr/include/Xm), THEN YOU WILL HAVE TO SET 'STD_INCLUDES' BELOW
  75. # TO THE APPROPRIATE LOCATION.
  76. #
  77. # If you change STD_INCLUDES below, you should also set STD_INCLUDES
  78. # in ../Imakefile. 
  79. #            
  80. # STD_INCLUDES = -I. -I/mnt0/src/OSFMotif1.1.1 -I/mnt0/src/OSFMotif1.1.1/X11
  81.  
  82. #
  83. # Notes: 
  84. #    If you just want to make a standalone XLISP interpreter, see the rule
  85. #    "lisp::" in Makefile.{generic,hpux,sparc,...}.
  86. #    
  87. #    This Imakefile just creates libXlisp.a, which is used by ../winterp
  88. #
  89. #    libXlisp.a requires math library libm.a.
  90. #
  91. #    All changes made to XLISP for using in libXlisp.a for WINTERP
  92. #       are within "#ifdef WINTERP" sections. Therefore, you MUST
  93. #       define the preprocessor symbol WINTERP in compiling these
  94. #    XLISP files.
  95. #
  96.  
  97.  SRCS = unixstuff.c \
  98.     xlbfun.c \
  99.     xlcont.c \
  100.     xldbug.c \
  101.     xldmem.c \
  102.     xleval.c \
  103.     xlfio.c \
  104.     xlglob.c \
  105.     xlimage.c \
  106.     xlinit.c \
  107.     xlio.c \
  108.     xljump.c \
  109.     xllist.c \
  110.     xlmath.c \
  111.     xlobj.c \
  112.     xlpp.c \
  113.     xlprin.c \
  114.     xlread.c \
  115.     xlstr.c \
  116.     xlstruct.c \
  117.     xlsubr.c \
  118.     xlsym.c \
  119.     xlsys.c
  120.  
  121.  OBJS = unixstuff.o \
  122.     xlbfun.o \
  123.     xlcont.o \
  124.     xldbug.o \
  125.     xldmem.o \
  126.     xleval.o \
  127.     xlfio.o \
  128.     xlglob.o \
  129.     xlimage.o \
  130.     xlinit.o \
  131.     xlio.o \
  132.     xljump.o \
  133.     xllist.o \
  134.     xlmath.o \
  135.     xlobj.o \
  136.     xlpp.o \
  137.     xlprin.o \
  138.     xlread.o \
  139.     xlstr.o \
  140.     xlstruct.o \
  141.     xlsubr.o \
  142.     xlsym.o \
  143.     xlsys.o
  144.  
  145. #
  146. # Note on DEFINES:
  147. # (1) -DWINTERP: xlisp/xlisp.h and xlisp/xldmem.h (which are included by all
  148. # WINTERP files) have '#ifdef WINTERP' surrounding changes made to XLISP
  149. # for use by WINTERP: you MUST compile with -DWINTERP or nothing will work.
  150. #
  151. # (2) -D_NO_PROTO: this is required by Motif 1.1 if you are using a
  152. # non-ANSI-C compiler. Eventually everybody will have an ANSI C compiler
  153. # and at that point this flag should be removed.
  154. #
  155. # (3) -Dhpux is needed if you are running on HPUX 7.0.
  156. #
  157. # (4) -DMALLOC_0_RETURNS_NULL is needed on HPUX 7.0 when linking with
  158. # the fast malloc library "-lmalloc".
  159. #
  160. # For HPUX 7.0, -Wc,-Np1000 is there to prevent the 'cc' error:
  161. #     "Parameter table overflow. Try the -Wc,-Np option."
  162. # Get rid of this in HPUX 8.0 since the compiler is supposed to use
  163. # dynamic tables.
  164. # Note that the X11r4 Imake hp.cf specifies a smaller value of
  165. # "-Wc,-Np" -- this setting overrides that value.
  166. #
  167.  
  168. #ifdef HPArchitecture
  169.  DEFINES = -Dhpux -DWINTERP -DMALLOC_0_RETURNS_NULL -D_NO_PROTO -Wc,-Np1000
  170. #else
  171.  DEFINES = -DWINTERP -D_NO_PROTO
  172. #endif
  173.  
  174. NormalLibraryTarget(Xlisp,$(OBJS))
  175. DependTarget()
  176.